<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>柱状</h1>
    <script src="echarts.min.js"></script>
    <script src="echarts-gl.js"></script>

    <div id="main" style="width: 600px; height: 400px"></div>
    <script type="text/javascript">
      var myChart = echarts.init(document.getElementById("main"));
      var option = {
        title: {
          text: "陈有根",
        },
        legend: {
          data: ["max", "min", "cen"],
        },
        grid3D: [{}],
        xAxis3D: [
          {
            type: "category",
            data: ["1", "2", "3", "4", "5"],
          },
        ],
        visualMap: [
          {
            show: true,
            min: 1,
            max: 100,
            calculable: true,
            inRange: {
              color: ["red", "green", "yellow"],
            },
          },
        ],
        yAxis3D: [{ type: "value", data: ["1", "2", "3", "4", "5"] }],
        zAxis3D: [{ type: "value", data: ["1", "2", "3", "4", "5"] }],
        series: [
          {
            name: "max",
            type: "bar3D",
            data: [
              [1, 2, 3],
              [2, 5, 6],
              [5, 3, 1],
            ],
          },
          {
            name: "min",
            type: "bar3D",
            data: [
              [2, 4, 6],
              [3, 9, 6],
              [4, 2, 8],
            ],
          },
          {
            name: "cen",
            type: "bar3D",
            data: [
              [3, 3, 3],
              [2, 2, 2],
              [4, 4, 4],
            ],
          },
        ],
      };
      myChart.setOption(option);
    </script>
  </body>
</html>
